<style type="text/css">
</style>
<div class="tabbable-custom">
    <div class="portlet">
        <div class="portlet-title">
            <button class="btn btn-success title-action" ng-click="biddingDepositGrid.add()"
                    tabindex="0">
                <i class="fa fa-plus"></i> 新增记录
            </button>
            <a href="javascript:void(0);" class="title-operation search-expand">筛选</a>

            <div class="title-search-box">
                <input type="text" placeholder="请输入客户名称" class="search-field"
                       style="width: 180px;" maxlength="100" ng-model="biddingDepositGrid.query.quickSearchName">
                <a class="fa fa-search" ng-click="biddingDepositGrid.query(biddingDepositGrid.query.quickSearch = 1)"></a>
            </div>
        </div>
        <div class="portlet-search-body" style="display: none;">
            <form class="form-inline" role="form">
                <div class="form-group">
                    <div class="col-md-4">
                        <div class="input-icon">
                            <i class="fa fa-user"></i>
                            <select class="form-control" style="width: 200px;color: #b3b3b3;"  ng-model="biddingDepositGrid.query.depositSource"
                                    ng-options="opt.value as opt.name for opt in options.depositSource">
                                    <option  value="">-- 保证金来源 --</option>
                            </select>
                            
                        </div>
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-md-4">
                        <div class="input-icon">
                            <i class="fa fa-user"></i>
                            <input class="form-control" placeholder="客户名称" ng-model="biddingDepositGrid.query.customerName">
                        </div>
                    </div>
                </div>
                <button class="btn btn-primary" ng-click="biddingDepositGrid.query(biddingDepositGrid.query.quickSearch = 0)"><i class="fa fa-search"></i> 搜索</button>
            </form>
        </div>
        <div class="portlet-body" style="width: 100%">
            <table ed-grid="biddingDepositGrid" class="table table-striped table-bordered table-hover dataTable"
                   ed-url="biddingDeposit/query.do" ed-model="biddingDeposit" style="width: 100%">
                <thead>
                <tr>
                    <th ed-data="_index"></th>
                    <th ed-data="customerName">客户名称</th>
                    <th ed-data="depositSource | code : 'depositSource'">保证金来源</th>
                    <th ed-data="deposit | number : 2" location="right">保证金(￥)</th>
                    <th ed-data="createTime">创建时间</th>
                    <th width="200px">操作</th>
                </tr>
                </thead>
            </table>
        </div>
    </div>


<div ed-modal="biddingDepositAddModal" data-options="width:'600px',title: '保证金信息', static:true,icon: 'fa-money'">
    <div class="form" style="overflow: auto;height: 300px;">
            <form action="#" class="form-horizontal form-row-seperated w5c-form" w5c-form-validate novalidate name="biddingDepositForm">
                <div class="form-body">
	                    <div class="form-group" ng-if="addFlag">
		                        <label class="col-md-3 control-label"><span class="required">*</span>客户名称</label>
		                        <div class="col-md-5">
		                            <select class="form-control" name="customerId" ng-model="biddingDeposit.customerId"
		                            ng-change="biddingDepositAddModal.customerChange();"
                                    ng-options="opt.customerId as opt.customerName for opt in customerList" required></select>
		                        </div>
		              	</div>
	                    <div class="form-group">
		                       	<label class="col-md-3 control-label"><span class="required">*</span>保证金</label>
		                        <div class="col-md-6">
		                            <input type="text"  id="deposit" class="form-control input-inline" name="deposit" ed-validate="double"
                                  	 ng-model="biddingDeposit.deposit" required>
                                  	 <span class="help-inline">(￥)</span>
		              	</div>
	           		</div>
                </div>
            </form>
    </div>
</div>
</div>

